package com.tledu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tledu.pojo.SC;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SCMapper extends BaseMapper<SC> {
    @Select("select * from oc_subject_course where course_id=#{course_id}")
    List<SC> find(Integer course_id);


    @Delete("delete from oc_subject_course where subject_id = #{subject_id} ")
    int deleteBySubject_id(Integer subject_id);
}
